<div class="page-right">
        <div id="toolbar-box">
                    <div class="m">
                        <div class="pagetitle icon-48-article">
                          <h2 style="width: 400px;text-indent: 40px;">Quản lý thành phố</h2> 
                        </div>
                        
                        <div id="toolbar" class="toolbar-list">
                            <ul>
                            
                                <li  id="toolbar-new">
                                    <a href="<?php echo base_url();?>admin/city/add"  class="toolbar" >
                                        <span class="icon-32-new">
                                        </span>
                                        Thêm
                                    </a>
                                </li>
                                    
                               <li id="toolbar-featured" >
                                    <a class="toolbar" href="javascript:saveorder(<?php echo count($item);?>, 'saveorder')">
                                        <span class="icon-32-featured"> </span>
                                        Lưu thứ tự
                                    </a>
                                </li>
                                <li  id="toolbar-publish">
                                    <a href="#" onclick="if (document.adminForm.boxchecked.value==0){alert('Chưa chọn dòng nào');}else{ Joomla.submitbutton('publish')}" class="toolbar">
                                        <span class="icon-32-publish">
                                        </span>
                                        Hiển thị
                                    </a>
                                </li>
                                    
                                <li  id="toolbar-unpublish">
                                    <a href="#" onclick="if (document.adminForm.boxchecked.value==0){alert('Chưa chọn dòng nào');}else{ Joomla.submitbutton('unpublish')}" class="toolbar">
                                        <span class="icon-32-unpublish">
                                        </span>
                                        Ẩn
                                    </a>
                                </li>      
                                <li  id="toolbar-trash">
                                    <a href="#" onclick="if (document.adminForm.boxchecked.value==0){alert('Chưa chọn dòng nào');}else{ Joomla.submitbutton('delete')}" class="toolbar">
                                        <span class="icon-32-trash">
                                        </span>
                                        Xóa
                                    </a>
                                </li>
                                 
                        </ul>
                        <div class="clr"></div>
            </div><!-- End toolbar-list -->
        </div> <!-- End m -->
        </div><!-- End toolbar-box -->
            
            
            
         <!-- BEGIN TABLE LIST -->   
            <form method="post" name="adminForm" action="<?php echo base_url();?>admin/city/action">
                    <table class="wp-list-table widefat fixed posts" cellspacing="0">
                	<thead>
                	<tr>
                		<th scope='col' id='cb' class='manage-column column-cb check-column' >
                            <input type="checkbox" onclick="Joomla.checkAll(this)" title="Check All" value="" name="checkall-toggle" />
                        </th>
                        <th scope='col'  class='manage-column'><span>Tên thành phố</span></th>
                        <th scope='col' class='manage-column'><span>Trạng thái</span></th>
                        <th scope='col' class='manage-column'><span>Thứ tự</span></th>
                        		
                    </tr>
                	</thead>
                	<tbody id="the-list">
                        <?php foreach($item as $items){ ?>
                				<tr id="post-1" class="post-1 post type-post status-publish format-standard hentry category-uncategorized alternate iedit author-self" valign="top">
                    				<th scope="row" class="check-column">
                                        <input type="checkbox" name="id[]" onclick="Joomla.isChecked(this.checked);" id="cb<?php echo $items->city_id;?>" value="<?php echo $items->city_id;?>" />
                                        <input type="hidden" name="cid[]" value="<?php echo $items->city_id;?>" />
                                    </th>
               						<td class="post-title page-title column-title"><strong><a class="row-title" href="<?php echo base_url();?>admin/city/edit/<?php echo $items->city_id;?>"><?php echo $items->city_name;?></a></strong>
                                    </td>
                                    
               						<td class="author column-author" align="center">
                                        <?php if($items->city_publish==1){ ?>
                                        <a href="<?php echo base_url();?>admin/city/unpublish/<?php echo $items->city_id;?>"><img src="<?php echo base_url();?>public/images/admin/publish.png" width="32" height="32"/></a>
                                        <?php } else { ?>
                                        <a href="<?php echo base_url();?>admin/city/publish/<?php echo $items->city_id;?>"><img src="<?php echo base_url();?>public/images/admin/unpublish.png" width="32" height="32"/></a>
                                        <?php } ?>
                                    </td>	
                                    <td class="author column-author">
                                        <input type="text" size="3" value="<?php echo $items->city_order;?>" name="order[]" style="text-align: center;"/>
                                    </td>
                            </tr>
                            <?php } ?>
                		</tbody>
                        <input type="hidden" value="" name="boxchecked" id="boxchecked"/>
                        <input type="hidden" value="" name="task"/>
                </table>
                <!-- END TABLE LIST -->   
        </form>
</div> <!-- End page-right -->